package dom;

public class Dog extends Animal implements IRun,ISwim{
    public Dog() {
        super("小狗");
    }
    @Override
    public void eat() {
        System.out.println(name+"正在吃狗粮");
    }
    public void run() {
        System.out.println(name+"正在用4条腿跑...");
    }
    public void swim() {
        System.out.println(name+"正在用4条腿游泳...");
    }
}
